package com.zilu.digitaltwin.dto.geo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author :caijianbao
 * @date : 2023/1/7 13:12
 */
@Data
public class LayerObjectRespDTO {

    @JsonProperty("polygonLayer")
    private LayerDTO polygonLayer;
    @JsonProperty("buildingLayer")
    private LayerDTO buildingLayer;

    public LayerDTO getPolygonLayer() {
        if (polygonLayer == null) {
            polygonLayer = new LayerDTO();
        }
        return polygonLayer;
    }

    public LayerDTO getBuildingLayer() {
        if (buildingLayer == null) {
            buildingLayer = new LayerDTO();
        }
        return buildingLayer;
    }

    public LayerObjectRespDTO() {
        this.polygonLayer = new LayerDTO();
        this.buildingLayer = new LayerDTO();
    }
}
